﻿@model Downloader.Framework.Queries.RecordList<Downloader.Web.Controllers.ViewModels.FriendlyLinkViewModel> 

<table id="tbdatalist"  pageindex="@Model.PageIndex" pagecount="@Model.PageCount" pagesize="@Model.PageSize"  class="tableBorder tableBorder-thcenter" width="100%" cellspacing="0" cellpadding="0" border="1">
    <tr  class="color1">
        <td>序号</td>
        <td>名称</td>
        <td>地址</td>
        <td>Log图标</td>
        <td>显示状态</td>
        <td>操作</td>
    </tr>
    @{
        var i = 0;
        foreach (var t in Model)
        {
            <tr class= "color@((i+1) % 2+2)">
                <td>@i</td>
                <td>@t.Name</td>
                <td>@t.Url</td>
                <td>@t.LogImg</td>
                <td>@t.IsShow</td>
                <td>@Html.ActionLink("edit","Edit","FriendlyLink", new { id = t.Id }, new { @class = "edit" })
                    @Html.ActionLink("dele", "Dele", "FriendlyLink", new { id = t.Id }, new { @class = "dele" })
                </td>
            </tr>
        }
    }
</table>